﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LogManager.Base
{
    /// <summary>
    /// A attribute to set the log type of a class
    /// Will be used to build up the log
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class LogType : System.Attribute
    {
        private string _type;

        /// <summary>
        /// Initializes the log type attribute
        /// </summary>
        /// <param name="type">Type name of the log</param>
        public LogType(string type)
        {
            _type = type;
        }

        /// <summary>
        /// The defined log type
        /// </summary>
        public string Type
        {
            get
            {
                return _type;
            }
        }
    }
}
